package com.eascs.admin.o2o.internal.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eascs.admin.common.service.BaseSevice;
import com.eascs.admin.o2o.internal.dao.LoanapplyExpandDetailDao;
import com.eascs.admin.o2o.internal.entity.LoanapplyExpandDetail;

/**
 * 保证金与管理费  临时表
 * 
 * @author ycz
 *
 */
@Service
public class LoanapplyExpandDetailService extends BaseSevice {
	@Autowired
	private LoanapplyExpandDetailDao loanapplyExpandDetailDao;
	
	@Transactional(transactionManager = "o2oTransactionManager")
	public void updateExpandId(LoanapplyExpandDetail loanapplyExpandDetail) {
		loanapplyExpandDetailDao.updateById(loanapplyExpandDetail);
	}

	@Transactional(transactionManager = "o2oTransactionManager")
	public void save(LoanapplyExpandDetail loanapplyExpandDetail) {
		loanapplyExpandDetailDao.insert(loanapplyExpandDetail);
	}
	
	public LoanapplyExpandDetail queryDetail(String expandId){
	return loanapplyExpandDetailDao.queryDetail(expandId);
	}
	public void delete(String id){
		 loanapplyExpandDetailDao.deleteById(LoanapplyExpandDetail.class, id);
	}
	
}
